package se.webbzon.boltzmann.environment;

import se.webbzon.boltzmann.player.Player;

public interface PlayerEnvironmentListener {
	
	/*============================================================
	Public Methods
	============================================================*/
	
	/** This method is invoked when a player is added to the
	 * player environment. **/
	public void playerAdded(PlayerEnvironment penv, Player player);
	
	/** This method is invoked when a player is removed from the
	 * player environment. **/
	public void playerRemoved(PlayerEnvironment penv, Player player);
	
	/** This method is invoked when all players are removed from 
	 * the player environment. The removed players will be available
	 * in the provided PlayerEnvironment during the call of this
	 * method, but will be removed immediately after. **/
	public void playersCleared(PlayerEnvironment penv);

}
